import { http } from './index'

/**
 * 分页查询
 * @param {Object} params
 */
export function getStrategyList (params) {
  return http.post('/message/MessageSetting/page', params)
}

/**
 * 删除
 * @param {String} id
 */
export function deleteStrategy (id) {
  return http.get('/message/MessageSetting/delete/' + id)
}

/**
 * 修改或保存
 * @param {Object} params
 */
export function saveOrUpdateStrategyInfo (data) {
  const url = '/message/MessageSetting/saveOrUpdate'
  return http.post(url, data)
}

/**
 * 根据id查询消息设置信息
 * @param {String} id
 */
export function getStrategyInfoById (id) {
  return http.get('/message/MessageSetting/get/' + id)
}